package com.bonjour.work;

import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

import com.bonjour.common.initializ.SpringBootApplication;


@ComponentScan({"com.bonjour.work"})
@EnableDiscoveryClient
@EnableFeignClients
@EnableAutoConfiguration(exclude = DataSourceAutoConfiguration.class)
public class ExchangeApplication extends SpringBootApplication {

    public static void main(String ...args) {
        start(ExchangeApplication.class, args);
    }

    @Override
    protected int jobs(String... args) {
//        SpringHelper.getBean(RabbitProcessor.class).onListener();
//    	SpringHelper.getBean(CronProcessor.class).starting();
        return 0;
    }
}